﻿using System.ComponentModel;
using DevExpress.XtraGrid;

namespace CIIS.Common
{
    public partial class BaseGridControl : GridControl
    {
        public BaseGridControl()
        {
            InitializeComponent();

            //导航条
            DevControlUtils.Instance.EnableGridControlNavgator(this,
                DevControlUtils.ENavigatorButton.First
                | DevControlUtils.ENavigatorButton.Next
                | DevControlUtils.ENavigatorButton.Last
                | DevControlUtils.ENavigatorButton.Prev
                | DevControlUtils.ENavigatorButton.PrevPage
                | DevControlUtils.ENavigatorButton.NextPage);
        }

        public BaseGridControl(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }
    }
}
